﻿<%@ Page Language="C#" MasterPageFile="~/SiteAdmin/MasterTheme/Auto.master" AutoEventWireup="true"
    CodeFile="DataGroupsMan.aspx.cs" Inherits="DataGroupsMan" %>

<%@ Register Src="UserControls/ImgSelector.ascx" TagName="ImgSelector" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table border="1" cellpadding="1" cellspacing="1">
        <tr>
            <td valign="top" style="background-color:#96bff4;width:230px;">
                网站模块分类
                <asp:ImageButton ID="ImageButton1" runat="server" AlternateText="刷新" OnClick="ImageButton1_Click" ImageUrl="~/App_Themes/EsSimp/Images/shuaxin.gif" />
                <asp:TreeView ID="TreeView1" runat="server" EnableClientScript="False" ShowLines="True"
                    SkipLinkText="" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged">
                    <SelectedNodeStyle BackColor="PowderBlue" />
                    <NodeStyle Width="100%" />
                </asp:TreeView>
            </td>
            <td valign="top">
                <asp:Label ID="Label3" runat="server" Font-Size="Larger"></asp:Label>
                <br />
                <asp:Label ID="Label1" runat="server">选定要操作的行的“存”列，或“删”列，才会将结果提交到服务器。未选中的不会操作。空白行使用后，在提交后会自动产生。
                </asp:Label>
                <asp:GridView ID="GridView1" DataKeyNames="ID" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="编码">
                            <ItemTemplate>
                                <asp:TextBox ReadOnly="true" Width="48" ID="Label1" Font-Bold="true" runat="server" Text='<%# Eval("ID") %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="存" ShowHeader="False">
                            <ItemTemplate>
                                <%--<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="删除"></asp:LinkButton>--%>
                                <asp:CheckBox runat="server" Checked="false" ID="Save" Text="" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="删" ShowHeader="False">
                            <ItemTemplate>
                                <%--<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="删除"></asp:LinkButton>--%>
                                <asp:CheckBox runat="server" Visible='<%# !String.IsNullOrEmpty(Eval("ID").ToString()) %>'
                                    Checked="false" ID="Del" Text="" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="名称">
                            <ItemTemplate>
                                <asp:TextBox ID="Title" runat="server" Text='<%# Eval("Title") %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="图标" Visible="false">
                            <ItemTemplate>
                                <uc1:ImgSelector ID="Icon" runat="server" LinkText="预览 " SelText="选择" Value='<%# Eval("Icon") %>' />
                            </ItemTemplate>
                            <ItemStyle Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="图片" Visible="false">
                            <ItemTemplate>
                                <uc1:ImgSelector ID="Img" runat="server" LinkText="预览 " SelText="选择" Value='<%# Eval("Img") %>' />
                            </ItemTemplate>
                            <ItemStyle Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="英文">
                            <ItemTemplate>
                                <asp:TextBox ID="Memo" runat="server" Text='<%# Eval("Memo") %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="排序">
                            <ItemTemplate>
                                <asp:TextBox ID="SortIdx" runat="server" Text='<%# Eval("SortIdx") %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                      <RowStyle BackColor="#EFF3FB" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="25px"/>
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                <br />
                <asp:ImageButton ID="SaveButton" runat="server" AlternateText="提交" OnClick="SaveButton_Click" ImageUrl="~/App_Themes/EsSimp/Images/tijiao.gif" />
                <asp:ImageButton ID="ResetButton" runat="server" AlternateText="恢复" OnClick="ResetButton_Click" ImageUrl="~/App_Themes/EsSimp/Images/huifu.gif" />
                <asp:Label ID="Label2" runat="server" Text="警告：所有删除操作都要小心，会一起删除子类和数据。"></asp:Label></td>
        </tr>
    </table>
</asp:Content>
